<?php
$this->breadcrumbs = array(
	'Quản lý quản trị viên' => array('/Dashboard/staffs/index'),
	'Thông tin quản trị viên'
);
?>
<!-- BEGIN PORTLET-->
<div class="row">
	<div class="col-md-12">
    	<div class="portlet">
        	<div class="portlet-title">
            	<div class="caption"><i class="icon-bar-chart"></i>Thông tin quản trị viên</div>
                <div class="actions">
                    <?php echo CHtml::link('<i class="icon-plus"></i> Cập nhật thông tin', array('/Dashboard/staffs/update', 'id'=>$model->id), array('class'=>'btn blue btn-sm')); ?>
                </div>
            </div>
            <div class="portlet-body">
<!-- BEGIN NEWS FORM -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'staffs-form',
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'horizontal-form',
	),
)); ?>
<div class="form-body">
    <div class="row">
        <div class="col-md-6">
            <div class="form-group <?php echo ($model->getError('username') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'username', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'username', array('class'=>'form-control')); ?>
                <?php echo $form->error($model, 'username', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->getError('email') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'email', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'email', array('class'=>'form-control')); ?>
                <?php echo $form->error($model, 'email', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->getError('phone') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'phone', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'phone', array('class'=>'form-control')); ?>
                <?php echo $form->error($model, 'phone', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->getError('role') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'role', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'role', array('class'=>'form-control', 'value'=>$model->getRole())); ?>
                <?php echo $form->error($model, 'role', array('class'=>'help-block')); ?>
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group <?php echo ($model->getError('fullname') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'fullname', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'fullname', array('class'=>'form-control')); ?>
                <?php echo $form->error($model, 'fullname', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->getError('fullname') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'memberid', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'memberid', array('class'=>'form-control', 'value'=>$model->user->email)); ?>
                <?php echo $form->hiddenField($model, 'memberid'); ?>
            </div>
            
            <div class="form-group <?php echo ($model->getError('status') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'status', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'status', array('class'=>'form-control', 'value'=>$model->getStatus())); ?>
                <?php echo $form->error($model, 'status', array('class'=>'help-block')); ?>
            </div>
        </div>
    </div>
</div>
<?php $this->endWidget(); ?>
<!-- END NEWS FORM -->
            </div>
        </div>
    </div>
</div>